import React from 'react';
import { ConfigProvider } from 'antd';
import { Outlet } from 'umi';
import zhCN from 'antd/lib/locale/zh_CN';

// 定义Ant Design主题
const theme = {
  token: {
    colorPrimary: '#1677ff',
    borderRadius: 4,
  },
};

/**
 * 基础布局组件
 */
const BaseLayout: React.FC = () => {
  return (
    <ConfigProvider locale={zhCN} theme={theme}>
      <Outlet />
    </ConfigProvider>
  );
};

export default BaseLayout; 